<script type="text/javascript">
function enableBtn(btnStr,cond){
	//for single button, use the btnStr, if "" means all
	var btn = $((btnStr==""? "button":btnStr));
	if(cond){
		btn.removeAttr("disabled");
		btn.css("color","black");
	}else{
		btn.attr("disabled","disabled");
		btn.css("color","#b0b0b0");
	}
}
function trim(str){
	var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
	return str.replace(rtrim, '');
}
</script>
